#include<iostream>
using namespace std;
int n, m;
int arr[110];
int main()
{
	while (cin >> n >> m) {
		for (int i = 1; i <= n; i++) {
			arr[i] = i * 2;
		}
		int k = 0;
		int av = 0;
		int sm = 0;
		for (int i = 1; i <= n; ) {
			if (k < m) {
				sm += arr[i];
				i++;
				k++;
			}
			else {
				cout << sm / m << " ";
				sm = 0;
				k = 0;
			}
		}
		if (k < m) {
			cout << sm << endl;
		}
		else {
			cout<< sm / m <<endl;
		}
	}
	return 0;
}